<html>
	<head>
		<title></title>
		<meta charset="UTF-8"/>
	</head>
	<body>
		<div id="" onclick="alert(1);">
			<input class="weui-switch"  type="checkbox"  readonly="readonly">
		</div>
		<button class="button1">获取状态</button>
		<button class="button2">更改状态</button>
	</body>
	<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
	<script type="text/javascript">
		$("input").click(function(event){
			event.preventDefault()
		})
		
		$(".button2").click(function(){
			if($("input").prop("checked")){
				$("input").prop("checked",false);
			}else{
				
				$("input").prop("checked",true);
				
			}
		})
		
		$(".button1").click(function(){
			console.log($("input").prop("checked"));
		})
	</script>
</html>